<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
	<meta charset="utf-8">
	<title>菜单编辑</title>
	<link rel="stylesheet" href="/system/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/system/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
	<input type="hidden" class="id" th:value="${srb.id}">
	<input type="hidden" class="pid" th:value="${srb.pid}">
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">资源管理</label>
		<div class="layui-input-block">
			<input type="text"  th:value="${srb.name}" class="layui-input name" lay-verify="required" placeholder="">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">上级目录</label>
		<div class="layui-input-block">
			<select id="parentId" name="parentId" lay-filter="parentId" >
		        <option value="">设为一级菜单</option >
		    </select>
	    </div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">资源图标</label>
		<div class="layui-input-block">
			<input type="text" th:value="${srb.icon}" class="layui-input icon" placeholder="">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">快捷按钮</label>
		<div class="layui-input-block">
			<select class="isQuick" name="isQuick" lay-filter="isQuick" >
		        <option value="1" th:selected="${srb.isQuick == 1}">启用</option >
		        <option value="0" th:selected="${srb.isQuick == 0}">禁用</option >
		    </select>
	    </div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">背景色</label>
		<div class="layui-input-block">
			<input type="text" th:value="${srb.bgColor}"  class="layui-input bgColor" placeholder="">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">资源路径</label>
		<div class="layui-input-block">
			<input type="text" th:value="${srb.url}" class="layui-input url" placeholder="">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">权限描述</label>
		<div class="layui-input-block">
			<input type="text" th:value="${srb.descr}" class="layui-input descr" placeholder="">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<a class="layui-btn layui-btn-sm" onclick="sub()">提交</a>
		</div>
	</div>
</form>
<script type="text/javascript" src="/system/layui/layui.js"></script>
<script type="text/javascript" src="/sysResource/editResource.js"></script>
</body>
</html>